#include <iostream>
#include <string.h>

using namespace std;

void test()
{
    //need one place to set end_space 
    /* char arr[5] = {'h', 'e', 'l', 'l', 'o'}; */
    char arr[] = {'h', 'e', 'l', 'l', 'o', '\0'};
    "world";
    char arr2[6] = "hello";

    cout << arr << endl;
    cout << arr2 << endl;
}

void test1()
{
    const char *pstr = "world";
    char *p = new char[strlen(pstr) + 1]();
    strcpy(p, pstr);

    cout << pstr << endl;
    cout << p << endl;
}

int main()
{
    test();
    test1();
    return 0;
}

